<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>智能订餐</title>
    <meta name="description" content="">
    <meta name="HandheldFriendly" content="True">
    <meta name="MobileOptimized" content="320">
    <meta name="viewport" content="width=device-width, initial-scale=1, minimal-ui, user-scalable=no">
    <meta http-equiv="cleartype" content="on">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="/assets/base/Inforschool/css/style.css">
    <link rel="stylesheet" href="/assets/base/Inforschool/css/mobiscroll.custom-3.0.0-beta2.min.css">
        <link rel="stylesheet" href="/assets/base/Inforschool/css/layer.css">
</head>
<body>
<div class="wraper">
     <form action="/base/Inforschool/order" id="addRoomContract" method="post">
    <div class="header font-white">
        <a href="javascript:history.go(-1)" class="iconfont icon-left font-white back"></a>
        <div class="font-16 text-center">用餐日期</div>
    </div>
    <div class="bg_white margin-12 padding-12">
        <div class="boxs flex_between font-gray2 padding-0 border">
           <div class="iconfont icon-riqi"></div>
            <input class=" flex_1 tday" type="text" name="start" id="start" placeholder="请选择开始日期">
            <div class="iconfont icon-xiala"></div>
        </div>
        <div class="boxs flex_between font-gray2 padding-0 border">
           <div class="iconfont icon-riqi"></div>
            <input class=" flex_1 tday" type="text" name="finish" id="finish" placeholder="请选择结束日期">
            <div class="iconfont icon-xiala"></div>
        </div>
    </div>
    <input class=" flex_1 tday" type="hidden" name="ID" value="{BEESCRM:$ID}" id="ID">
    <input class=" flex_1 tday" type="hidden" name="PID" value="{BEESCRM:$PID}" id="PID">
    <input class=" flex_1 tday" type="hidden" name="condition" value="{BEESCRM:$condition}" id="condition">
    <input type="submit" id="btn" class="ja_submit hide" value="下一步">
    <a href="#" class="btn btn2 font-16 text-center">下一步</a>
    </form>
</div>
<script src="/assets/base/Inforschool/js/jquery-2.1.0.min.js"></script>
<script src="/assets/base/Inforschool/js/layer.js"></script>
<script src="/assets/base/Inforschool/js/mobiscroll.custom-3.0.0-beta2.min.js"></script>
<script src="/assets/base/Inforschool/js/public.js"></script>
<script>
    $(function () {
        var startDate = new Date();
        startDate.setDate(startDate.getDate()+1);
        var opt={};
        opt.date = {preset : 'date'};
        opt.default = {
            theme: 'android-holo-light', //皮肤样式
            display: 'bottom', //显示方式
            mode: 'scroller', //日期选择模式
            dateFormat: 'yyyy-mm-dd',//格式
            lang:'zh',
            min: startDate
        };

        var optDateTime = $.extend(opt['date'], opt['default']);
        $(".tday").mobiscroll(optDateTime).date(optDateTime);

    });

    $('.btn').click(function () {
        var start =$('#start').val();
         if(start==''){
            fm.alert('请选择开始日期！');
            return false;
        }
        var finish =$('#finish').val();
         if(finish==''){
            fm.alert('请选择结束日期！');
            return false;
        }
        $('.ja_submit').click();
    });

</script>
</body>
</html>